import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [  {
  path: '/',
  redirect: '/home',
},
{
  path: '/',
  name: 'layout',
  component: () => import(/* webpackChunkName: "layout" */ '../views/pageLayout.vue'),
  children:[
    {
      path: '/home',
      name: 'home',
      component: () => import(/* webpackChunkName: "home" */ '../views/home/home.vue'),
    },
		
		{
		  path: '/category',
		  name: 'category',
		  component: () => import(/* webpackChunkName: "category" */ '../views/category/category.vue'),
		},
		
  ]
}, 
];
const router = new VueRouter({
  mode: "hash",  
  routes
});

export default router;